﻿<CC:AnimatedBasePage 
    x:Class="TradeMo.BuyingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:CC="clr-namespace:Clarity.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	d:DataContext="{d:DesignData SampleData/BuyingViewSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait" Background="Black"
    >

    <Grid x:Name="LayoutRoot" Background="Black">
    	<Grid>
		<Grid.Background>
			<ImageBrush ImageSource="/Wallpaper2.jpg" Stretch="None" Opacity="0.595"/>
		</Grid.Background>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<ProgressBar Grid.Row="0" Style="{StaticResource TradeMoProgressBarStyle}" 
				Height="10" VerticalAlignment="Top" Margin="0,62,0,0"
				IsIndeterminate="{Binding IsLoading}"  />
        <TextBlock Grid.Row="0" Style="{StaticResource PhoneTextLargeStyle}"
				HorizontalAlignment="Center" VerticalAlignment="Center" 
				Text="Buying" Foreground="White" />

        <controls:Pivot BorderThickness="0,62,0,0" Grid.Row="1" Style="{StaticResource PivotStyle1}">
            <controls:PivotItem Header="watchlist">
                <Grid>
                	<ListBox x:Name="WatchListBox"
							ItemsSource="{Binding WatchList}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="WatchListBox_SelectionChanged" />
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="won">
                <Grid>
        	         <ListBox x:Name="WonListBox"
							ItemsSource="{Binding WonList}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="WonListBox_SelectionChanged" />

                </Grid>
            </controls:PivotItem>
			
            <controls:PivotItem Header="lost">
                <Grid>
        	         <ListBox x:Name="LostListBox"
							ItemsSource="{Binding LostList}" 
							ItemTemplate="{StaticResource ListingDataTemplate}" 
							ItemContainerStyle="{StaticResource SearchResultsListBoxItemStyle}" 
							SelectionChanged="LostListBox_SelectionChanged" />

                </Grid>
            </controls:PivotItem>

        </controls:Pivot>
		</Grid>
    </Grid>
    
</CC:AnimatedBasePage>